﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;

namespace TShooter.TfsSearch.Engine.Configuration
{
    [Serializable]
    public class ServerRegistration
    {
        private string _Url;
        private string _UserName;
        private string _Password;
        private EngineRegistrationCollection _Engines;

        public ServerRegistration()
        {
        }

        public ServerRegistration(string url, string userName, string password, EngineRegistrationCollection engines)
        {
            _Url = url;
            _UserName = userName;
            _Password = password;
            _Engines = engines;
        }

        public string Url
        {
            get { return _Url; }
            set { _Url = value; }
        }

        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }

        public string Password
        {
            get { return _Password; }
            set { _Password = value; }
        }

        public EngineRegistrationCollection Engines
        {
            get { return _Engines; }
            set { _Engines = value; }
        }
    }

    public class ServerRegistrationCollection: List<ServerRegistration>
    {
        
    }
}